package org.lds.ers.server.model;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.users.User;

//代表支聯會的 ERS專員
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class StakeERS {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private Long stakeID; //支聯會編號
    
    @Persistent
    private String userID; //專員的使用者ID

    @Persistent
    private String realName; //專員的姓名
    
//    @Persistent
//    private Stake stake;	//支聯會
    
//    public Stake getStake() {
//		return stake;
//	}
//
//	public void setStake(Stake stake) {
//		this.stake = stake;
//	}

	public StakeERS(Long stakeID, String userID, String realName)
    {
    	this.stakeID = stakeID;
    	this.userID = userID;
    	this.realName = realName;
    }
    
    public void setStakeID(Long stakeID)
    {
    	this.stakeID = stakeID;
    }
    public Long getStakeID()
    {
    	return this.stakeID ;
    }
    
    public void setUserID(String userID)
    {
    	this.userID = userID;
    }
    public String getUserID()
    {
    	return this.userID ;
    }
    
    public void setRealName(String realName)
    {
    	this.realName = realName;
    }
    public String getRealName()
    {
    	return this.realName ;
    }
    
    public void setID(Long id)
    {
    	this.id = id;
    }
    public Long getID()
    {
    	return this.id ;
    }
    
}
